package decimal;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入年龄和身高:(年龄是整数,身高是小数,中间使用逗号分隔):");
        String s = sc.next();
        String[] str = s.split(",");

        int i = Integer.parseInt(str[0]);
        double v = Double.parseDouble(str[1]);

        System.out.println("转成整数后的年龄是:"+i);
        System.out.println("转成小数后的身高是:"+v);
    }
}
